package cn.lili.controller.member;


import cn.lili.common.enums.ResultUtil;
import cn.lili.common.vo.PageVO;
import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.member.entity.dos.Extension;
import cn.lili.modules.member.entity.vo.ExtensionVO;
import cn.lili.modules.member.service.EextensionService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * create by yudan on 2022/3/13
 */

@RestController
@Api(tags = "商家端,推广管理")
@RequestMapping("/store/Extension")
public class SellerExtensionController {

    @Autowired
    private EextensionService eextensionService;


    @ApiOperation(value = "推广管理列表")
    @GetMapping
    public ResultMessage<IPage<ExtensionVO>> getByPage(ExtensionVO extension, PageVO page) {
        return ResultUtil.data(eextensionService.getExtensionPage(extension, page));
    }
}
